import { RouteRecordRaw } from 'vue-router'

export default [
   {
      name: 'me',
      path: '/me',
      component: () => import('../layout/my/index.vue'),
      meta: {
         auth: true
      },
      children: [
         {
            name: 'me.article',
            path: '/me/article/:userId',
            component: () => import('../views/my/articleList.vue'),
            meta: {
               title: '文章列表',
               auth: true
            }
         },
         {
            name: 'me.star',
            path: '/me/star/:userId',
            component: () => import('../views/my/star.vue'),
            meta: {
               title: '收藏列表',
               auth: true
            }
         },
         {
            name: 'me.commont',
            path: '/me/commont/:userId',
            component: () => import('../views/my/commont.vue'),
            meta: { title: '评论列表', auth: true }
         },
         {
            name: 'me.safe',
            path: '/me/safe',
            component: () => import('../views/my/safe.vue'),
            meta: { title: '安全管理', auth: true }
         },
         {
            name: 'me.password',
            path: '/me/password',
            component: () => import('../views/my/password.vue'),
            meta: { title: '修改密码', auth: true }
         },
         {
            name: 'me.info',
            path: '/me/info',
            component: () => import('../views/my/userInfo.vue'),
            meta: { title: '个人信息', auth: true }
         }
      ]
   }
] as RouteRecordRaw[]
